<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page contentType="text/html;charset=UTF-8"%>

<form:input path="id" type="hidden" />

<div class="form-group">
	<div class="col-lg-offset-2 col-lg-10 alert alert-danger"
		id="painelErro">
		<span><strong>Erro:</strong><span id="camposObrigatorios"></span>
		</span>
	</div>
</div>
<div class="form-group">
	<label for="inputCodigo" class="col-lg-2 control-label">Código</label>
	<div class="col-lg-1">
		<form:input type="text" class="form-control" id="inputCodigo"
			placeholder="Digite o código" path="codigo" />
	</div>
</div>

<div class="form-group">
	<label for="inputNome" class="col-lg-2 control-label">Nome</label>
	<div class="col-lg-6">
		<form:input type="text" class="form-control" id="inputNome"
			placeholder="Digite o nome" path="descricao" />
	</div>
</div>

<div class="form-group">
	<label for="inputTipoEvento" class="col-lg-2 control-label">Tipo
		Evento</label>
	<div class="col-lg-6">
		<form:select id="inputTipoEvento" class="form-control"
			path="tipoEventoEnum">
			<option value="${null}">Selecione</option>
			<c:forEach var="tipoEvento" items="${tipoEvento}">
				<option value="${tipoEvento}"
					<c:if test="${tipoEvento.descricao eq evento.tipoEventoEnum.descricao}" > selected="selected" </c:if>>
					${tipoEvento.codigo} - ${tipoEvento.descricao}</option>
			</c:forEach>
		</form:select>
	</div>
</div>

<div class="form-group">
	<label for="inputPossuiDeficiencia" class="col-lg-2 control-label">Evento
		Percentual?</label>
	<div class="col-lg-3">
		<form:checkbox id="inputEventoPercentual" path="isEventoPercentual" />
	</div>
</div>

<div class="form-group">
	<label for="inputPercentual" class="col-lg-2 control-label">Percentual</label>
	<div class="col-lg-2">
		<form:input type="text" class="form-control" id="inputPercentual"
			placeholder="Digite o percentual" path="percentualTransiente"
			maxlength="15" />
	</div>
</div>

<div class="form-group">
	<label class="col-lg-2 control-label">&nbsp;</label>
	<div class="col-lg-6">
		<form:checkbox id="inputFGTS" path="descontaFGTS" label="FGTS" />
		<form:checkbox id="inputINSS" path="descontaINSS" label="INSS" />
		<form:checkbox id="inputIRRF" path="descontaIRRF" label="IRRF" />&nbsp;
		<form:checkbox id="inputSalarioFamilia" path="descontaSalarioFamilia" label="Salário Família" />&nbsp;
		<form:checkbox id="inputTemporario" path="isTemporario" label="Temporário" />&nbsp;
		<form:checkbox id="inputPrevidencia" path="isTipoPrevidencia" label="Previdência" />
		&nbsp;
	</div>
</div>

<div class="form-group">
	<div class="col-lg-offset-2 col-lg-10">
		<a href="#" class="btn btn-success" id="btn-salvar">Salvar</a> <a
			href="#" id="btn-cancelar" class="btn btn-danger">Cancelar</a>
	</div>
</div>